package T3;
import T2.Circle;
import T2.Point;
public class Test3  {
    public static void main(String[] args) {
        // 创建两个 Circle 实例
        Circle circle1 = new Circle(new Point(0, 0), 5);
        Circle circle2 = new Circle(new Point(0, 0), 10);

        // 创建两个 ColoredCircle 实例，颜色相同
        ColoredCircle coloredCircle1 = new ColoredCircle(new Point(0, 0), 5, new Color(255, 0, 0), new Color(0, 255, 0));
        ColoredCircle coloredCircle2 = new ColoredCircle(new Point(0, 0), 5, new Color(255, 0, 0), new Color(0, 255, 0));

        // 创建一个 ColoredCircle 实例，颜色不同
        ColoredCircle coloredCircle3 = new ColoredCircle(new Point(0, 0), 5, new Color(0, 0, 255), new Color(255, 0, 0));

        // 测试关系
        System.out.println("coloredCircle1 和 circle1 的关系: " + coloredCircle1.describeRelation(circle1));
        System.out.println("coloredCircle1 和 coloredCircle2 的关系: " + coloredCircle1.describeRelation(coloredCircle2));
        System.out.println("coloredCircle1 和 coloredCircle3 的关系: " + coloredCircle1.describeRelation(coloredCircle3));
        System.out.println("coloredCircle1 和 circle2 的关系: " + coloredCircle1.describeRelation(circle2));
    }
}
